Current File : //usr/lib/python3/dist-packages/twisted/python/test/__pycache__/test_sendmsg.cpython-312.pyc |
�
Ϫ�f( � � � d Z ddlZddlZddlZddlZddlmZmZmZmZ ddl m
Z
mZmZm
Z
m Z ddlmZ ddl mZmZ dZdd lmZ dd
lmZ ddlmZmZ ddlmZ dd
lmZ ddlm Z ddl!m"Z" ddl#m$Z$ e"jJ � r ddl m&Z& dZ'ndZ' ddl(m)Z)m*Z*m+Z+m,Z, dZ-dZ. G d� d� Z/d� Z0 G d� de1� Z2 G d� de� Z3d� Z4 ee-e.� G d� de$� � Z5 ee-e.� G d� d e$� � Z6y# e$ r dZY ��w xY w# e$ r dZ-dZ.Y �mw xY w)!z&
Tests for L{twisted.python.sendmsg}.
� N)�close�pathsep�pipe�read)�AF_INET�AF_INET6�
SOL_SOCKET�error�socket)�pack)�AF_UNIX�
socketpairFT)�skipIf)�reactor)�Deferred�inlineCallbacks)�ProcessDone)�ProcessProtocol)�FilePath)�platform)�TestCase)�MSG_DONTWAIT)�
SCM_RIGHTS�getSocketFamily�recvmsg�sendmsg� z!Platform doesn't support sendmsg.c �4 � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z y) � _FDHolderzP
A wrapper around a FD that will remember if it has been closed or not.
c � � || _ y �N��_fd)�self�fds �B/usr/lib/python3/dist-packages/twisted/python/test/test_sendmsg.py�__init__z_FDHolder.__init__: s � ���� c � � | j S )z/
Return the fileno of this FD.
r"